package net.sppan.base.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import net.sppan.base.dao.IDyContentCommentDao;
import net.sppan.base.dao.support.IBaseDao;
import net.sppan.base.entity.DyContentComment;
import net.sppan.base.service.IDyContentCommentService;
import net.sppan.base.service.support.impl.BaseServiceImpl;
@Service
public class DyContentCommentServiceImpl extends BaseServiceImpl<DyContentComment,Long> implements IDyContentCommentService {

	@Autowired
	private IDyContentCommentDao dyContentCommentDao;
	
	@Override
	public IBaseDao<DyContentComment, Long> getBaseDao() {
		return this.dyContentCommentDao;
	}
	@Override
	public Page<DyContentComment> findContentComment(Long commentId ,Pageable pageable){
		return dyContentCommentDao.findContentComment(commentId,pageable);
		
	}
	
	@Override
	public void updateContentComment(Long commentId,Long status){
		dyContentCommentDao.updateContentComment(commentId,status);
	}
}
